<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$this->title = '设置推荐奖拿七代';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="page-title">
  <div>
    <h1><i class="fa fa-trophy"></i> 设置领导奖</h1>
    <p style="font-style:normal;">当会员推荐市场总业绩达到以下数值就相应奖励放入达标会员USD美元账户钱包中。例如：达到100万美元奖励10万，达到500万奖励50万，达到1000万美元奖励100万。</p>
  </div>
  <!--div style="width:300px;">
    <ul class="breadcrumb">
      <li><i class="fa fa-home fa-lg"></i></li>
      <li><a href="#">领导奖</a></li>
    </ul>
  </div-->
</div>

<!-- page body start-->
<div class='card'>
<?php $form = ActiveForm::begin(); ?>
<?php
  if(isset($tip)&&$tip===true){
    if($model->hasErrors()){
?>
      <div class="alert alert-danger" role="alert">
        <?php
            foreach($model->getErrors("") as $key=>$value){
              echo $value."<br>";
            }
        ?>
      </div>
<?php
    }else{
?>
      <div class="alert alert-success" role="alert">更新成功！</div>
<?php
    }
  }
?>
<div class="form-group">
  <label for="exampleInputEmail1">指标一</label>
  <div class="form-inline">
    <div class="input-group">
      <div class="input-group-addon">达到（$）</div>
      <?= $form->field($model, 'level_one',['template'=>'{input}'])->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{1,9}'])->label('') ?>
      <div class="input-group-addon">.00</div>
    </div>
    <div class="input-group">
      <div class="input-group-addon">奖励（$）</div>
      <?= $form->field($model, 'level_one_reward',['template'=>'{input}'])->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{1,9}'])->label('') ?>
      <div class="input-group-addon">.00</div>
    </div>
  </div>
</div>
<div class="form-group">
  <label for="exampleInputEmail1">指标二</label>
  <div class="form-inline">
    <div class="input-group">
      <div class="input-group-addon">达到（$）</div>
      <?= $form->field($model, 'level_two',['template'=>'{input}'])->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{1,9}'])->label('') ?>
      <div class="input-group-addon">.00</div>
    </div>
    <div class="input-group">
      <div class="input-group-addon">奖励（$）</div>
      <?= $form->field($model, 'level_two_reward',['template'=>'{input}'])->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{1,9}'])->label('') ?>
      <div class="input-group-addon">.00</div>
    </div>
  </div>
</div>
<div class="form-group">
  <label for="exampleInputEmail1">指标三</label>
  <div class="form-inline">
    <div class="input-group">
      <div class="input-group-addon">达到（$）</div>
      <?= $form->field($model, 'level_three',['template'=>'{input}'])->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{1,9}'])->label('') ?>
      <div class="input-group-addon">.00</div>
    </div>
    <div class="input-group">
      <div class="input-group-addon">奖励（$）</div>
      <?= $form->field($model, 'level_three_reward',['template'=>'{input}'])->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{1,9}'])->label('') ?>
      <div class="input-group-addon">.00</div>
    </div>
  </div>
</div>
<div class="animated-checkbox">
  <label class="semibold-text">
    <?= $form->field($model, 'is_stop_lindao')->checkbox(['label' => '<span class="label-text">关闭领导奖</span>']) ?>
  </label>
</div>
<button type="submit" class="btn btn-warning">提交</button>
<?php ActiveForm::end(); ?>
</div>
<!-- page body end-->
